package com.alan.springbootbase.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Alan
 * @Description
 * @date 2021年01月03日 16:58
 */
@Slf4j
@RestController
public class HelloWorldController {

    @Value("${spring.profiles.active}")
    private String active;

    @RequestMapping("/hello")
    public String index() {
        log.debug("debug Hello World");
        return "Hello World "+active;
    }

}
